/*
 * @Project Name: demo
 * @File Name: Principal
 * @Package Name: com.sayimo.cn.test.demo.shiro
 * @Date: 2018/4/22 21:09
 * @Creator: linshixing-1199
 * @line------------------------------
 * @修改人:
 * @修改时间:
 * @修改内容:
 */

package com.sm.shoplook.shiro;

import java.io.Serializable;

import com.sm.shoplook.domain.system.User;

/**
 * @author chenpy-1072
 * @desc Principal
 * @date 2018/4/22 21:09
 * @see
 */
public class Principal implements Serializable {

	private static final long serialVersionUID = 7166927302315862049L;
	/**
	 * 用户ID
	 */
	private Integer userId;
	/**
	 * 用户名
	 */
	private String userName;

	public Principal(User user) {
		this.userId = user.getId();
		this.userName = user.getUserName();
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
}
